package com.lyh.service.role;

import com.lyh.dao.Role.RoleMapper;
import com.lyh.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/*@Service*/
public class RoleServiceImpl implements RoleService{
    /*@Autowired*/
    private RoleMapper roleMapper;

    public void setRoleMapper(RoleMapper roleMapper) {
        this.roleMapper = roleMapper;
    }

    @Override
    public List<Role> getRoleList() {
        return roleMapper.getRoleList();
    }
}
